<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>内嵌（行内）</title>
</head>
<body>
    <!--点击事件onclick-->
    <input type="button" value="点击。" onclick="alert('点击后才有')">

    <input type="text" onfocus="alert('获得焦点')">
    <input type="text" onblur="alert('历史焦点')">
</body>
</html>